package com.pshcp.domain.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: TODO
 * @Author: xiaoche
 * @Date: 2022/11/3 09:51
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_session")
public class Session implements Serializable {
    private static final long serialVersionUID=1L;

    @Id
    private Long id;
    /**
     * 状态0正常1删除
     */
    private Integer status;
    private Date createdTime;
    private Date updateTime;
    /**
     * 类型：0 app-医生 1 app-患者 2 微信患者
     */
    private Integer terminal;

    private String token;

    /**
     * 用户ID
     */
    private Long userId;

    private Date sessionRefreshTime;
    /**
     * 业务状态：0正常1失效
     */
    private Integer bizStatus;
}
